﻿<?php

require('conn.php');

require('session.php');

require('functions.php');

//print_r($session);


?>


<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

<title>商家查询界面 - <?php echo $config['sitename']?></title>

<meta name="keywords" content="<?php echo $config['sitename']?>,查询ID" />

<meta name="description" content="<?php echo $config['sitename']?>查询结果">

<link href="<?php echo $site?>/static/all.css" type="text/css" rel="stylesheet" media="all">

<style>

td {

	border-bottom: 1px solid #ddd;

	line-height: 24px;

	font-size: 14px;

	color: #333;

	padding:5px 0;

}

.mhome{background:#fff;}

</style>

</head>


<body class="mhome">

<?php include('header1.php')?>

<div style="width:96%;margin:0 auto;">


<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td width="20%" align="center">时间</td>

 
    
    <td align="center">标题</td>

    <td align="center">单号</td>
	<td align="right">状态</td>

  </tr>

<?php

$row_referer=$mysql->query("select * from `jifen2` where `uid`='{$session['id']}' order by -`id`");

foreach($row_referer as $v_referer){

if($v_referer['state']==0){
	$tt='<font color=red>代发货</font>';
}elseif($v_referer['state']==1){
	$tt='<font color=green>已发货</font>';
}


print <<<table

  <tr>

    <td width="20%" align="center">{$v_referer['day']}</td>

   
	
	<td align="center">{$v_referer['title']}</td>

	<td align="center">{$v_referer['wuliu']}</td>

    <td align="right"><font color=red>{$tt}</font></td>

  </tr>


	
table;

}

?>  



  </table>


</div>

<br><br><br>

<?php
include('footer.php');
?>


</body>
</html>
